package com.abel.order.state.entity;

import com.abel.order.state.enums.OrderStateEnum;
import lombok.Getter;
import lombok.Setter;

/**
 * @author heyangyang
 * @since 2024-04-26
 */
@Getter
@Setter
public class Order {

    private OrderStateEnum orderStateEnum;

    public Order() {
        this.orderStateEnum = OrderStateEnum.UNPAY;
    }

    public void nextState() {
        this.orderStateEnum.nextState(this);
    }

}
